package com.usiful.controller;

import java.util.List;

import com.usiful.model.ActionArg;

/**
 * 打包控制器,属性修改，构建，签名一条龙服务
 * @author [周织能]
 *
 */
public class PacketController extends BaseController{

	public final static String ARG_SDK_PATH = "sdkpath";
	public final static String ARG_PROJECT_PATH = "path";
	public final static String ARG_PKGNAME = "package";
	public final static String ARG_VERCODE = "vercode";
	public final static String ARG_VERNAME = "vername";
	public final static String ARG_MINSDK = "minsdk";
	public final static String ARG_TARGETSDK = "targetsdk";
	public final static String ARG_APPNAME = "appname";
	public final static String ARG_APPICON = "appicon";
	public final static String ARG_SPLASH = "splash";
	public final static String ARG_ORIENTATION = "orientation";
	public final static String ARG_CONFIGLINE = "configline";

	public final static String ARG_KEYSTORE = "keystore";
	public final static String ARG_ALIAS = "alias";
	public final static String ARG_KEYPASS = "keypass";
	public final static String ARG_STOREPASS = "aliaspass";
	public final static String ARG_SIGN_APKDIR = "apkdir";
	
	protected AppPropertiesController mAppPropertiesCtrl;
	protected BuildController mBuildCtrl;
	protected SignController mSignCtrl;

	public PacketController(AppPropertiesController appPropertiesCtrl, BuildController buildCtrl,
			SignController signCtrl) {
		mAppPropertiesCtrl = appPropertiesCtrl;
		mBuildCtrl = buildCtrl;
		mSignCtrl = signCtrl;
	}
	
	
	@Override
	public boolean handleAction(ActionArg arg) {
		// TODO Auto-generated method stub
		super.handleAction(arg);
		mAppPropertiesCtrl.handleAction(arg);
		mBuildCtrl.handleAction(arg);
		mSignCtrl.handleAction(arg);
		return true;
	}

}
